#pragma once
#include "cocos2d.h"

USING_NS_CC;

class PetFactory;

class PetBank : public CCObject
{
public:
	PetBank(void);
	~PetBank(void);

	void initBank();
	void clearBank();
	PetFactory* getPetFactory(char* id);
	CCString* getPetIdByIndex(int index);
	CC_SYNTHESIZE_RETAIN(CCDictionary*, _listPetFactories, PetFactories);
	CC_SYNTHESIZE_RETAIN(CCArray*, _listPetId, PetIds);

	static PetBank* _instance;
	static PetBank* sharedPetBank();
};

